package com.publicize.entity;

import com.baomidou.mybatisplus.annotation.*;

import java.util.Date;

import java.io.Serializable;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 * 知识竞赛测试表
 * </p>
 *
 * @author bs
 * @since 2021-03-06
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@ApiModel(value="Examination对象", description="知识竞赛测试表")
public class Examination implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "试题编号")
    private String manageId;

    @ApiModelProperty(value = "试题编号")
    @TableId(value = "number", type = IdType.ID_WORKER_STR)
    private String number;

    @ApiModelProperty(value = "试题名称")
    private String examinationName;

    @ApiModelProperty(value = "试题数量")
    private Integer topicNum;

    @ApiModelProperty(value = "总分")
    private Integer topicScore;

    @ApiModelProperty(value = "创建时间")
    @TableField(fill = FieldFill.INSERT)
    private Date createTime;

    @ApiModelProperty(value = "更新时间")
    @TableField(fill = FieldFill.INSERT_UPDATE)
    private Date modifiedTime;

    @ApiModelProperty(value = "考试开始时间")
    private String startTime;

    @ApiModelProperty(value = "考试结束时间")
    private String endTime;

    @ApiModelProperty(value = "1（true）已删除,0（false）未删除")
    @TableLogic
    private Integer isDeleted;


}
